<template>
 <div>
     <a href="http://localhost:8080/common/file/download" download="true">下载文件</a>
     <hr>
     <a href="#" @click="downlaod">post请求下载文件</a>
     <hr>
     <a href="#" @click="downlaod2">XHRpost请求下载文件</a>
 </div>
</template>

<script>
import _axios from "@/utils/requestUtil";
 export default {
   data () {
     return {

     }
   },
   components: {

   },
   methods:{
       downlaod(){
           const url = '/api/common/file/download';
           _axios.loadLoadFile(url,{},{})
       },
       downlaod2(){
           const url = '/api/common/file/download';
           _axios.XHRLoadLoadFile(url,{},{})
       }
   }
 }
</script>

<style>

 
</style>
